package cn.highedu.spring.bean13;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Queue;

@Component
public class MyBean {
    @Autowired // 先按照类型匹配，再按照名称匹配
    private Queue ack2;

    public void printQueue(){
        System.out.println(ack2);
    }
}
